package com.ice.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ice.service.WeChatService;

@Controller
@RequestMapping("/config")
public class SystemController {
	
	@Autowired
	private WeChatService weChatService;
	
	@RequestMapping("/access_token")
	@ResponseBody
	public String getAccessToken(HttpServletRequest request,HttpServletResponse response){
		String access_token = weChatService.getAccessToken();
		return access_token;
	}
	

}
